package com.virtualparadigm.identity;

import java.io.Serializable;
import java.util.Iterator;
import java.util.Properties;

import org.apache.commons.lang.builder.ReflectionToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import com.virtualparadigm.compositor.ToStringStyleBuilder;
import com.virtualparadigm.hierarchy.LineageList;

public class ResourceAddressParts implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	private String scheme;
	private String namespace;
	private String path;
	private Properties parameters;
	
	public ResourceAddressParts()
	{
		super();
	}
	public ResourceAddressParts(String scheme, String namespace, String path, Properties parameters)
	{
		super();
		this.scheme = scheme;
		this.namespace = namespace;
		this.path = path;
		this.parameters = parameters;
	}
	
	public String getScheme()
	{
		return scheme;
	}
	public void setScheme(String scheme)
	{
		this.scheme = scheme;
	}
	public String getNamespace()
	{
		return namespace;
	}
	public void setNamespace(String namespace)
	{
		this.namespace = namespace;
	}
	public String getPath()
	{
		return path;
	}
	public void setPath(String path)
	{
		this.path = path;
	}
	
	public Properties getParameters()
	{
		return parameters;
	}
	public void setParameters(Properties parameters)
	{
		this.parameters = parameters;
	}
	
	public String toString()
	{
		return ReflectionToStringBuilder.toString(this, ToStringStyle.MULTI_LINE_STYLE);

	}
}